x86: MPX IA32_BNDCFGS msr handle
authorXudong Hao <xudong.hao@intel.com>
Tue, 25 Feb 2014 08:38:21 +0000 (09:38 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 25 Feb 2014 08:38:21 +0000 (09:38 +0100)
commit081f710070e2f5e5808ac8f92f7302bc8352dd57
treeffcecc6e0e51e51291d0ec81122b5c2994d4982e
parente8121c54ec8cc6a92ae2d7219e7a7fede6dfd137
x86: MPX IA32_BNDCFGS msr handle

When MPX supported, a new guest-state field for IA32_BNDCFGS
is added to the VMCS. In addition, two new controls are added:
 - a VM-exit control called "clear BNDCFGS"
 - a VM-entry control called "load BNDCFGS."
VM exits always save IA32_BNDCFGS into BNDCFGS field of VMCS.

Signed-off-by: Xudong Hao <xudong.hao@intel.com>
Reviewed-by: Liu Jinsong <jinsong.liu@intel.com>
Unlikely, but in case VMX support is not available, not expose
MPX to hvm guest.

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Liu Jinsong <jinsong.liu@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/vmx/vmcs.c
xen/include/asm-x86/cpufeature.h
xen/include/asm-x86/hvm/vmx/vmcs.h
xen/include/asm-x86/msr-index.h